<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>
<body>
    <!-- 按键修饰符 -->
    <div id="app">
        <input type="text" @keyup.65="handKeyUp">
        <input type="text" @keyup.ctrl.65="handKeyUp">
        <button @click.right.65="handKeyUp">按钮</button>
    </div>
    <script>
        var app = new Vue({
            el:"#app",
            methods:{
                handKeyUp(){
                    alert('A is clicked')
                }
            }
        })
    </script>
</body>
</html>
